@echo off
cls
echo ********* begin build! *********
:start
set /p APP_VERSION=input version number:
if "%APP_VERSION%"=="" echo.You entered the correct version number!! &goto :start
call npm install --registry=https://registry.npmmirror.com
call npm run build:prod
set FILE_NAME=version.txt
set DATE_TIME=%date:~0,4%-%date:~5,2%-%date:~8,2% %time:~0,2%:%time:~3,2%:%time:~6,2%
echo version: %APP_VERSION% > %FILE_NAME%
echo builddate: %DATE_TIME% >> %FILE_NAME%
echo profile: .env.production >> %FILE_NAME%
echo version info：
type version.txt
move version.txt ./dist/version.txt
call ant
echo ********* end build! *********
pause
